package com.example.demo.pattern.commandpattern.control;

import com.example.demo.pattern.commandpattern.command.Command;

public class SimpleRemoteControl {
    private Command slot;

    public void setCommand(Command slot) {
        this.slot = slot;
    }

    public void buttonWasPressed() {
        slot.execute();
    }

}
